Skip to content

fix(Chat): make Enter key behave the same as Tab key for FileSuggestions#35

Merged
remarkablemark merged 2 commits into
masterfrom
fix/mention
May 8, 2026
Merged

fix(Chat): make Enter key behave the same as Tab key for FileSuggestions#35
remarkablemark merged 2 commits into
masterfrom
fix/mention

Conversation

@remarkablemark
Copy link
Copy Markdown
Member

@remarkablemark remarkablemark commented May 8, 2026

What is the motivation for this pull request?

This PR fixes chat file mention autocomplete so pressing Enter behaves like Tab when a file suggestion is focused.

What is the current behavior?

When the user types an @file query in chat and presses Enter, the prompt can submit instead of inserting the focused file suggestion.

What is the new behavior?

When a file suggestion is active, Enter inserts the focused suggestion instead of submitting the prompt. The related chat input and file suggestion tests were updated and expanded, including focused coverage for these paths.

Checklist:

@remarkablemark remarkablemark self-assigned this May 8, 2026
@remarkablemark remarkablemark added the bug Something isn't working label May 8, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented May 8, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

Files with missing lines Coverage Δ
src/components/Chat/FileSuggestions.tsx 100.00% <100.00%> (ø)
src/components/Chat/Input.tsx 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@remarkablemark remarkablemark merged commit 0468753 into master May 8, 2026
15 checks passed
@remarkablemark remarkablemark deleted the fix/mention branch May 8, 2026 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant